﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace QuanLyKhoHang
{
    class connect
    {
        string strConn;
        SqlConnection conn;
        public connect()
        {
            strConn = "Data Source=TIGER-PC\\SQLEXPRESS; Initial Catalog=QLKH;Integrated Security=True";
           // strConn = "server = TRANCUNG-LAP; database =QLKH; user id = sa; password= 123456;";

            conn = new SqlConnection(strConn);
            conn.Open();
            //conn.Close();
        }
        public SqlConnection getconnect()
        {
            return conn;
        }
        public void Close()
        {
            conn.Close();
        }
        //public void open() {
        //    conn.Open();
        //}
    }
}
